import { Card } from 'antd';
import React from 'react';
interface AppContainerProps {
  children?: React.ReactNode
  toolbar?: React.ReactNode
  queryFilter?: React.ReactNode
  boundary?: boolean
}
const AppContainer = ({ children, toolbar, boundary=true, queryFilter }: AppContainerProps) => {
  return (<Card
    bordered={false}
    bodyStyle={{ padding: boundary?null : 0 }}>
    <div>{queryFilter}</div>
    <div>{toolbar}</div>
    <div>{children}</div>
  </Card>)
}
export default AppContainer